import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// import App from './App.vue';
import axios from 'axios';

Vue.use(ElementUI);

Vue.config.productionTip = false;

Vue.prototype.ajax = axios.create({ //asax是自己命名
  timeou: 3000,
  responseType: 'json',
  baseURL: "http://192.168.9.134:8081",
  // baseURL: "http://127.0.0.1:8081",//公共/全局前缀地址 域名
  responseEncoding: 'utf8'
})

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");